package com.example.web.servlet;

import com.example.common.Result;
import com.example.model.User;
import com.example.service.TripService;
import com.example.service.impl.TripServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

@WebServlet("/concele")
public class TripListServlet extends HttpServlet {
    private TripService tripService = new TripServiceImpl();
    private ObjectMapper objectMapper = new ObjectMapper();
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        Result result = null;

        String id = req.getParameter("id");
        // 取消该车次
        // 查看订购该车次的用户 , 将该车次的转台修改为失效
        // 后续再说
    }
}
